package com.atguigu.srb.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
@EnableDiscoveryClient
public class ServiceGatewayApplication {
    public static void main(String[] args) {
        //规则：
        // http://Gateway_HOST:Gateway_PORT/serviceId/**
        //测试：
        // http://localhost/service-core/admin/core/userInfo/list1/10
        try{
            SpringApplication.run(ServiceGatewayApplication.class,args);
        }catch (
                Exception e
        ){
            e.printStackTrace();
        }

    }
}
